package com.yuxl.common.auth.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.experimental.Accessors;
import org.springframework.data.relational.core.mapping.Table;
import org.springframework.data.annotation.Id;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author yuxl
 */
@Schema(description = "角色实体")
@Table("auth_role")
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class AuthRole {

    @Id
    @Schema(description = "角色标识")
    private String mark;
    @Schema(description = "角色名称")
    private String name;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
} 